#pragma once
#include "../bytearray.h"
#include "../gus2_config.h"
#if GUS2_ENABLE_ATTRI
#define CTRL_TYPE_NEEDLE needle
typedef struct {
	unsigned char Color;
	unsigned char Angle;
	unsigned char Flush;
}__gui_attr_needle;

extern const __gui_attr_needle CTRL_NEEDLE_ATTR;
#endif 

void gui_needle_set_angle(bytearray_t* ba, float angle);
void gui_needle_set_inc_angle(bytearray_t* ba, float angle);
void gui_needle_set_ncolor(bytearray_t* ba, gui_color_t color);
void gui_needle_set_ccolor(bytearray_t* ba, gui_color_t color);

void gui_needles_set_angle(bytearray_t* ba, float angle, int index);
void gui_needles_set_inc_angle(bytearray_t* ba, float angle, int index);
void gui_needles_set_ncolor(bytearray_t* ba, gui_color_t color, int index);
void gui_needles_set_ccolor(bytearray_t* ba, gui_color_t color);

void gui_needles_set_flush(bytearray_t* ba);
void gui_needle_set_flush(bytearray_t* ba);

